<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<h:form id="loginForm">
	<h:outputText value="Logowanie" />
	<h:panelGrid columns="3" columnClasses="labelText, normalText, errotMsg">
		
		<h:outputText value="Login" />
		<h:inputText value="#{currentUser.login}" id="login" required="true">
			<f:validator validatorId="iosr11.ui.validators.Email" />
		</h:inputText>
		<h:message for="login" styleClass="errorMsg" />
		
		<h:outputText value="Haslo" />
		<h:inputSecret value="#{currentUser.password}"  id="password"/>
		<h:message for="password" styleClass="errorMsg" />		
	</h:panelGrid>
	<h:commandButton value="Zaloguj" action="#{currentUser.login}" />
</h:form>